﻿using Microsoft.ApplicationServer.Caching;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Blogger.UI.Controllers
{
   

    public class HomeController : Controller
    {
      
        public HomeController()
        {
            
        }
        public ActionResult Index()
        {
           

            return View();
        }
        public ActionResult SessionData()
        {
            return View();
        }
        public ActionResult About()
        {
            Session["ApplicationName"] = "MyWeb Application";
            Session["UserName"] = "Pijush Biswas";
            Session["ControllerName"] = "Home";
            return View();
        }
        [HttpPost]
        public ActionResult SessionData(FormCollection forms)
        {
            Session["ApplicationName"] = forms["ApplicationName"];
            Session["UserName"] = forms["UserName"];
            Session["ControllerName"] = forms["ControllerName"];
            return View();
        }       

    }
    
}
